import { getRecommendSwiper, getDiscList, getSingerList, getSingerDetail } from "api/";


export default {
    async _initRecomment({ commit }) {
        let res = await Promise.all([getRecommendSwiper(), getDiscList()]);
        commit("_initRecomment", res)
    },
    //歌手列表页
    async _getSingerList({ commit }) {
        let res = await getSingerList();
        commit("_getSingerList", res.data.list)
    },
    async _getSingerDetail({ commit, state }) {
        let id = state.singerInfo.id
        let res = await getSingerDetail(id);
        commit("_getSingerDetail", res)
    }
}